package com.erju.service;

import com.erju.pojo.User;
import com.erju.utils.Result;
import org.json.JSONException;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.sql.ResultSet;
import java.util.HashMap;
import java.util.Map;

/**
 * @author erju
 * @date 2022/3/4
 */
public interface LoginService {
    /**
     账号登陆判断
     */
    Result<?> userNameLogin(User user) throws UnsupportedEncodingException;

    /**
     * 退出登陆
     * @param request
     * @param response
     * @return
     */
    Result loginOut(ServletRequest request, ServletResponse response);
    Result loginByFace(StringBuffer imagebast64) throws JSONException;
    Result registerFace(String userId, StringBuffer imagebast64, HttpServletRequest request) throws JSONException;
}
